//
//  YWContactManager.m
//  maintain
//
//  Created by Kyo on 16/5/5.
//  Copyright © 2016年 ewin. All rights reserved.
//

#import "YWContactManager.h"
#import "YWMissionManager.h"
#import "YWDBTool.h"

@implementation YWContactManager
YWSingletonM(Manager)

- (NSArray *)allHandler{
    return [[YWMissionManager shareManager] projectMember];
}

- (NSArray*)allDepartments{
    return [[YWDBTool shareDBTool] allDepartments];
}

- (NSArray *)departmentWithHandlersByOrganizationNo:(NSString *)organizationNo{
    return [[YWDBTool shareDBTool] departmentWithHandlersByOrganizationNo:organizationNo];
}

- (NSArray *)departmentWithHandlersByBuildingId:(NSString *)buildingId{
    return [[YWDBTool shareDBTool] departmentWithHandlersByBuildingId:buildingId];
}

- (NSArray *)handlerWithDepartmentIds:(NSString *)departmentIds{
    return [[YWDBTool shareDBTool] handlerWithDepartmentIds:departmentIds];
}
- (YWHandler*)getHandlerWithUniqueId:(NSInteger)uniqueId{
    return [[YWDBTool shareDBTool] getHandlerWithUniqueId:uniqueId];
}
@end
